﻿using System;
using Microsoft.Xna.Framework;
using RaptorEngine.Particles;

namespace OilRigSumoWrestlers.Particles
{
	class RunningOil : ParticleSystem
	{
		protected override void InitializeSettings(ParticleSettings settings)
		{
			settings.TextureName = "oildrop";

			settings.MaxParticles = 200;

			settings.Duration = TimeSpan.FromSeconds(3f);

			settings.MinHorizontalVelocity = 0;
			settings.MaxHorizontalVelocity = 5;

			settings.MinVerticalVelocity = 4;
			settings.MaxVerticalVelocity = 6;

			settings.MinColor = Color.Black;
			settings.MaxColor = Color.Purple;

			// Create a wind effect by tilting the gravity vector sideways.
			//settings.Gravity = new Vector3(-20, -5, 0);
			settings.Gravity = new Vector3(0, -30, 0);

			settings.EndVelocity = 0.01f;

			settings.MinRotateSpeed = -1;
			settings.MaxRotateSpeed = 1;

			settings.MinStartSize = 0.2f;
			settings.MaxStartSize = 0.7f;

			settings.MinEndSize = 0.2f;
			settings.MaxEndSize = 0.7f;
		}
	}
}
